package com.kevin.file.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@RestController
public class FileController {

	@PostMapping("/fileUpload")
	public String fileuUpload(@RequestPart("file") MultipartFile file) {
		log.info(file.getOriginalFilename());
		
		return file.getOriginalFilename();
	}
	
}
